<style>
#vote_list_ol li{border-bottom: 1px dashed gray; margin:3px 0px;}
#vote_list_ol li>span{float:right;}
</style>
<h3>我发起的投票</h3>
<?php if($B['myvote']->total()):?>
	<ol id="vote_list_ol">
	<?php while($B['myvote']->fetch()):?>
		<li>
			<span>
				<?php echo $B['myvote']->v('VoteNum');?>次投票
				[<a href="<?php echo BASE_URL?>/?c=vote&a=edit&id=<?php echo $B['myvote']->v('Id');?>&rand=<?php echo rand();?>">编辑</a>]
				[<a onclick="return confirm('确定删除?此操作不可恢复!')" href="<?php echo BASE_URL?>/?c=vote&a=del&id=<?php echo $B['myvote']->v('Id');?>&rand=<?php echo rand();?>">删除</a>]
			</span>
			<a href="<?php echo BASE_URL?>/?c=vote&a=view&id=<?php echo $B['myvote']->v('Id');?>&rand=<?php echo rand();?>">
				<?php echo $B['myvote']->v('Name');?>
			</a>
		</li>
	<?php endwhile;?>
	</ol>
<?php else:?>
<div class="well">您还没有发起过投票，点击右上角的“发布新投票”吧！</div>
<?php endif;?>